package com.wanhe.viewconf.views.base.image;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.widget.ImageView;

/**
 * File Name:AutoFitSizeImageView.java<br/>
 * Package Name:com.wanhe.viewconf.views.base.image<br/>
 * Date:2017/7/25 15:20<br/>
 * author:chendeji<br/>
 * desc: 自适应父类控件高度的图片控件<br/>
 * Copyright (c) 2017/7/25, 781571323@qq.com All Rights Reserved.
 *
 */
public class AutoFitSizeImageView extends ImageView {
    public AutoFitSizeImageView(Context context) {
        super(context);
    }

    public AutoFitSizeImageView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(heightMeasureSpec, heightMeasureSpec);
    }
}
